package com.weblog.weblogapi.controller;

import com.weblog.weblogapi.service.MemberService;
import com.weblog.weblogapi.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/member")
public class MemberController {
    @Autowired
    private MemberService memberService;
    //显示所有会员
    @GetMapping
    private Result getAllMember(){return memberService.getAllMembers();}
}
